import request from "@utils/request";


/**
 * 获取游戏计划周期
 * @returns 游戏周期列表
 */
export function getTimes() {
  // return request.get("/v1/public/game/times", {}, { login: false });
  return request({
    url: "/v1/public/game/times",
    method: "get"
  });
}

export function uploadImg(file){
  let fm = new FormData();
  fm.append("file", file);
  return request({
    url: "/api/member/doupload",
    headers:{
      "Content-Type": "multipart/form-data"
    },
    method: "post",
    data: file
  })
}
